package org.otarriinae.security.authenticate.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * @author xj
 * @since 1.0
 */
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = { java.lang.annotation.ElementType.TYPE })
@EnableWebSecurity
@ComponentScan("org.otarriinae.kaptcha")
public @interface EnableServiceWebSecurity {

    /**
     * redis过期时间-- 分钟
     */
    int expiration() default 60;
}
